{template 'common/header'}
<ul class="nav nav-tabs">
		<li><a href="{php echo $this->createWebUrl('member', array('op' => 'list'));}">管理</a></li>
		<li class="active"><a href="{php echo $this->createWebUrl('member', array('op' => 'add','id'=>$_GPC['id']));}">编辑</a></li>
	</ul>
	<form action="" class="form-horizontal form" method="post">
		<input name="id" type="hidden" value="{$member['id']}" class='form-control'/>
		<div class="panel panel-default">
		  <div class="panel-heading">
		    <h3 class="panel-title">业主信息</h3>
		  </div>
		  <div class="panel-body">
		     <div class="form-group">
			    <label for="realname" class="col-sm-2 control-label">姓名</label>
			    <div class="col-sm-3">
			      <input name="realname" id='realname' type="text" value="{$member['realname']}" class='form-control'/>
			    </div>
			 </div>
		  </div>
		  <div class="panel-body">
		     <div class="form-group">
			    <label for="mobile" class="col-sm-2 control-label">手机</label>
			    <div class="col-sm-3">
			      <input type="text" id="mobile" name="mobile" value="{$member['mobile']}" class='form-control'/>
			    </div>
			 </div>
		  </div>
		  <div class="panel-body">
		     <div class="form-group">
			    <label for="mobile" class="col-sm-2 control-label">小区</label>
			    <div class="col-sm-3">
			        <select id="regionid" name="_regionid" class='form-control'>
						{loop $regions $region}
						<option value="{$region['id']}" {if $member['regionid']==$region['id']}selected{/if}>{$region['title']}</option>
						{/loop}
					</select>
			    </div>
			 </div>
		  </div>
		  <div class="panel-body">
		     <div class="form-group">
			    <label for="address" class="col-sm-2 control-label">房号</label>
			    <div class="col-sm-3">
			        <input type="text" id="address" name="address" value="{$member['address']}" class='form-control'/>
			    </div>
			 </div>
		  </div>
		  <div class="panel-body">
		     <div class="form-group">
			    <label for="remark" class="col-sm-2 control-label">备注</label>
			    <div class="col-sm-3">
			        <textarea name="remark" id='remark' class='form-control'>{$member['remark']}</textarea>
			    </div>
			 </div>
		  </div>
		  <div class="panel-body">
		     <div class="form-group">
			    <label for="" class="col-sm-2 control-label"></label>
			    <div class="col-sm-10">
			        <input type="hidden" name="token" value="{$_W['token']}"/>
					<button type="submit" class="btn btn-primary span1" name="submit" value="提交">提交</button> 
			    </div>
			 </div>
		  </div>
		</div>
	</form>


{template 'common/footer'}